using System.Linq;
using System.Text;
using System.Diagnostics;
using System.Runtime.Serialization;
using System.Collections;
using System.Data;
using System.ComponentModel;
using System.Data.OracleClient;
using WPFExcelReport.Helpers;
using WPFExcelReport.Controls;
namespace WPFExcelReport
{
   public partial class VICC_WFEVENTDEF
    {
      #region======ColumnSchema==========
       /*
                public string MANDANT { get { if (dwMaster == null) return ""; return dwMaster["MANDANT"].ToString(); } set { if (dwMaster == null) return; dwMaster["MANDANT"] = value; OnPropertyChanged("MANDANT", value); } } //lENGth 2
                public string ROWNID { get { if (dwMaster == null) return ""; return dwMaster["ROWNID"].ToString(); } set { if (dwMaster == null) return; dwMaster["ROWNID"] = value; OnPropertyChanged("ROWNID", value); } } //lENGth 20
                public string WFTYPE { get { if (dwMaster == null) return ""; return dwMaster["WFTYPE"].ToString(); } set { if (dwMaster == null) return; dwMaster["WFTYPE"] = value; OnPropertyChanged("WFTYPE", value); } } //lENGth 3
                public string WFCLASS { get { if (dwMaster == null) return ""; return dwMaster["WFCLASS"].ToString(); } set { if (dwMaster == null) return; dwMaster["WFCLASS"] = value; OnPropertyChanged("WFCLASS", value); } } //lENGth 3
                public string WFEVENTS { get { if (dwMaster == null) return ""; return dwMaster["WFEVENTS"].ToString(); } set { if (dwMaster == null) return; dwMaster["WFEVENTS"] = value; OnPropertyChanged("WFEVENTS", value); } } //lENGth 20
                public string WFEDES { get { if (dwMaster == null) return ""; return dwMaster["WFEDES"].ToString(); } set { if (dwMaster == null) return; dwMaster["WFEDES"] = value; OnPropertyChanged("WFEDES", value); } } //lENGth 40
                public string NEWUSER { get { if (dwMaster == null) return ""; return dwMaster["NEWUSER"].ToString(); } set { if (dwMaster == null) return; dwMaster["NEWUSER"] = value; OnPropertyChanged("NEWUSER", value); } } //lENGth 8
                public string NEWTIME { get { if (dwMaster == null) return ""; return dwMaster["NEWTIME"].ToString(); } set { if (dwMaster == null) return; dwMaster["NEWTIME"] = value; OnPropertyChanged("NEWTIME", value); } } //lENGth 20
                public string CHGUSER { get { if (dwMaster == null) return ""; return dwMaster["CHGUSER"].ToString(); } set { if (dwMaster == null) return; dwMaster["CHGUSER"] = value; OnPropertyChanged("CHGUSER", value); } } //lENGth 8
                public string CHGTIME { get { if (dwMaster == null) return ""; return dwMaster["CHGTIME"].ToString(); } set { if (dwMaster == null) return; dwMaster["CHGTIME"] = value; OnPropertyChanged("CHGTIME", value); } } //lENGth 20
                public string WFEHANDLER { get { if (dwMaster == null) return ""; return dwMaster["WFEHANDLER"].ToString(); } set { if (dwMaster == null) return; dwMaster["WFEHANDLER"] = value; OnPropertyChanged("WFEHANDLER", value); } } //lENGth 20
                public string NEXTEVENTS1 { get { if (dwMaster == null) return ""; return dwMaster["NEXTEVENTS1"].ToString(); } set { if (dwMaster == null) return; dwMaster["NEXTEVENTS1"] = value; OnPropertyChanged("NEXTEVENTS1", value); } } //lENGth 20
                public string NEXTEVENTS2 { get { if (dwMaster == null) return ""; return dwMaster["NEXTEVENTS2"].ToString(); } set { if (dwMaster == null) return; dwMaster["NEXTEVENTS2"] = value; OnPropertyChanged("NEXTEVENTS2", value); } } //lENGth 20
                public string NEXTEVENTS3 { get { if (dwMaster == null) return ""; return dwMaster["NEXTEVENTS3"].ToString(); } set { if (dwMaster == null) return; dwMaster["NEXTEVENTS3"] = value; OnPropertyChanged("NEXTEVENTS3", value); } } //lENGth 20
                public string DEFCONTROL1 { get { if (dwMaster == null) return ""; return dwMaster["DEFCONTROL1"].ToString(); } set { if (dwMaster == null) return; dwMaster["DEFCONTROL1"] = value; OnPropertyChanged("DEFCONTROL1", value); } } //lENGth 3
                public string DEFCONTROL2 { get { if (dwMaster == null) return ""; return dwMaster["DEFCONTROL2"].ToString(); } set { if (dwMaster == null) return; dwMaster["DEFCONTROL2"] = value; OnPropertyChanged("DEFCONTROL2", value); } } //lENGth 3
                public string DEFCONTROL3 { get { if (dwMaster == null) return ""; return dwMaster["DEFCONTROL3"].ToString(); } set { if (dwMaster == null) return; dwMaster["DEFCONTROL3"] = value; OnPropertyChanged("DEFCONTROL3", value); } } //lENGth 3
       */
       #endregion
    } 
       public partial class UIICC_WFEVENTDEF
    {
      
        #region======ColumnSchema==========
       /*
       #region ==MANDANT===========
        public static readonly DependencyProperty MANDANTProperty = DependencyProperty.Register("MANDANT",
            typeof(string), typeof(UIICC_WFEVENTDEF),
            new FrameworkPropertyMetadata("", FrameworkPropertyMetadataOptions.BindsTwoWayByDefault, OnMANDANTChanged));
        public string MANDANT
        {
            get
            {
                return (string)GetValue(MANDANTProperty);
            }
            set
            {
                SetValue(MANDANTProperty, value);
                OnMANDANTChg();
            }
        }
        private static void OnMANDANTChanged(DependencyObject sender, DependencyPropertyChangedEventArgs e)
        {
            var src = sender as UIICC_WFEVENTDEF;
            if (src != null)
            {
                src.MANDANT = (string)e.NewValue;
            }
        }
        public virtual void OnMANDANTChg()
        { 
        if(!IsEdit)
        return;
        if(dwMaster==null)
        return;
        TMV.MANDANT=MANDANT;
        }
         #endregion
       #region ==ROWNID===========
        public static readonly DependencyProperty ROWNIDProperty = DependencyProperty.Register("ROWNID",
            typeof(string), typeof(UIICC_WFEVENTDEF),
            new FrameworkPropertyMetadata("", FrameworkPropertyMetadataOptions.BindsTwoWayByDefault, OnROWNIDChanged));
        public string ROWNID
        {
            get
            {
                return (string)GetValue(ROWNIDProperty);
            }
            set
            {
                SetValue(ROWNIDProperty, value);
                OnROWNIDChg();
            }
        }
        private static void OnROWNIDChanged(DependencyObject sender, DependencyPropertyChangedEventArgs e)
        {
            var src = sender as UIICC_WFEVENTDEF;
            if (src != null)
            {
                src.ROWNID = (string)e.NewValue;
            }
        }
        public virtual void OnROWNIDChg()
        { 
        if(!IsEdit)
        return;
        if(dwMaster==null)
        return;
        TMV.ROWNID=ROWNID;
        }
         #endregion
       #region ==WFTYPE===========
        public static readonly DependencyProperty WFTYPEProperty = DependencyProperty.Register("WFTYPE",
            typeof(string), typeof(UIICC_WFEVENTDEF),
            new FrameworkPropertyMetadata("", FrameworkPropertyMetadataOptions.BindsTwoWayByDefault, OnWFTYPEChanged));
        public string WFTYPE
        {
            get
            {
                return (string)GetValue(WFTYPEProperty);
            }
            set
            {
                SetValue(WFTYPEProperty, value);
                OnWFTYPEChg();
            }
        }
        private static void OnWFTYPEChanged(DependencyObject sender, DependencyPropertyChangedEventArgs e)
        {
            var src = sender as UIICC_WFEVENTDEF;
            if (src != null)
            {
                src.WFTYPE = (string)e.NewValue;
            }
        }
        public virtual void OnWFTYPEChg()
        { 
        if(!IsEdit)
        return;
        if(dwMaster==null)
        return;
        TMV.WFTYPE=WFTYPE;
        }
         #endregion
       #region ==WFCLASS===========
        public static readonly DependencyProperty WFCLASSProperty = DependencyProperty.Register("WFCLASS",
            typeof(string), typeof(UIICC_WFEVENTDEF),
            new FrameworkPropertyMetadata("", FrameworkPropertyMetadataOptions.BindsTwoWayByDefault, OnWFCLASSChanged));
        public string WFCLASS
        {
            get
            {
                return (string)GetValue(WFCLASSProperty);
            }
            set
            {
                SetValue(WFCLASSProperty, value);
                OnWFCLASSChg();
            }
        }
        private static void OnWFCLASSChanged(DependencyObject sender, DependencyPropertyChangedEventArgs e)
        {
            var src = sender as UIICC_WFEVENTDEF;
            if (src != null)
            {
                src.WFCLASS = (string)e.NewValue;
            }
        }
        public virtual void OnWFCLASSChg()
        { 
        if(!IsEdit)
        return;
        if(dwMaster==null)
        return;
        TMV.WFCLASS=WFCLASS;
        }
         #endregion
       #region ==WFEVENTS===========
        public static readonly DependencyProperty WFEVENTSProperty = DependencyProperty.Register("WFEVENTS",
            typeof(string), typeof(UIICC_WFEVENTDEF),
            new FrameworkPropertyMetadata("", FrameworkPropertyMetadataOptions.BindsTwoWayByDefault, OnWFEVENTSChanged));
        public string WFEVENTS
        {
            get
            {
                return (string)GetValue(WFEVENTSProperty);
            }
            set
            {
                SetValue(WFEVENTSProperty, value);
                OnWFEVENTSChg();
            }
        }
        private static void OnWFEVENTSChanged(DependencyObject sender, DependencyPropertyChangedEventArgs e)
        {
            var src = sender as UIICC_WFEVENTDEF;
            if (src != null)
            {
                src.WFEVENTS = (string)e.NewValue;
            }
        }
        public virtual void OnWFEVENTSChg()
        { 
        if(!IsEdit)
        return;
        if(dwMaster==null)
        return;
        TMV.WFEVENTS=WFEVENTS;
        }
         #endregion
       #region ==WFEDES===========
        public static readonly DependencyProperty WFEDESProperty = DependencyProperty.Register("WFEDES",
            typeof(string), typeof(UIICC_WFEVENTDEF),
            new FrameworkPropertyMetadata("", FrameworkPropertyMetadataOptions.BindsTwoWayByDefault, OnWFEDESChanged));
        public string WFEDES
        {
            get
            {
                return (string)GetValue(WFEDESProperty);
            }
            set
            {
                SetValue(WFEDESProperty, value);
                OnWFEDESChg();
            }
        }
        private static void OnWFEDESChanged(DependencyObject sender, DependencyPropertyChangedEventArgs e)
        {
            var src = sender as UIICC_WFEVENTDEF;
            if (src != null)
            {
                src.WFEDES = (string)e.NewValue;
            }
        }
        public virtual void OnWFEDESChg()
        { 
        if(!IsEdit)
        return;
        if(dwMaster==null)
        return;
        TMV.WFEDES=WFEDES;
        }
         #endregion
       #region ==NEWUSER===========
        public static readonly DependencyProperty NEWUSERProperty = DependencyProperty.Register("NEWUSER",
            typeof(string), typeof(UIICC_WFEVENTDEF),
            new FrameworkPropertyMetadata("", FrameworkPropertyMetadataOptions.BindsTwoWayByDefault, OnNEWUSERChanged));
        public string NEWUSER
        {
            get
            {
                return (string)GetValue(NEWUSERProperty);
            }
            set
            {
                SetValue(NEWUSERProperty, value);
                OnNEWUSERChg();
            }
        }
        private static void OnNEWUSERChanged(DependencyObject sender, DependencyPropertyChangedEventArgs e)
        {
            var src = sender as UIICC_WFEVENTDEF;
            if (src != null)
            {
                src.NEWUSER = (string)e.NewValue;
            }
        }
        public virtual void OnNEWUSERChg()
        { 
        if(!IsEdit)
        return;
        if(dwMaster==null)
        return;
        TMV.NEWUSER=NEWUSER;
        }
         #endregion
       #region ==NEWTIME===========
        public static readonly DependencyProperty NEWTIMEProperty = DependencyProperty.Register("NEWTIME",
            typeof(string), typeof(UIICC_WFEVENTDEF),
            new FrameworkPropertyMetadata("", FrameworkPropertyMetadataOptions.BindsTwoWayByDefault, OnNEWTIMEChanged));
        public string NEWTIME
        {
            get
            {
                return (string)GetValue(NEWTIMEProperty);
            }
            set
            {
                SetValue(NEWTIMEProperty, value);
                OnNEWTIMEChg();
            }
        }
        private static void OnNEWTIMEChanged(DependencyObject sender, DependencyPropertyChangedEventArgs e)
        {
            var src = sender as UIICC_WFEVENTDEF;
            if (src != null)
            {
                src.NEWTIME = (string)e.NewValue;
            }
        }
        public virtual void OnNEWTIMEChg()
        { 
        if(!IsEdit)
        return;
        if(dwMaster==null)
        return;
        TMV.NEWTIME=NEWTIME;
        }
         #endregion
       #region ==CHGUSER===========
        public static readonly DependencyProperty CHGUSERProperty = DependencyProperty.Register("CHGUSER",
            typeof(string), typeof(UIICC_WFEVENTDEF),
            new FrameworkPropertyMetadata("", FrameworkPropertyMetadataOptions.BindsTwoWayByDefault, OnCHGUSERChanged));
        public string CHGUSER
        {
            get
            {
                return (string)GetValue(CHGUSERProperty);
            }
            set
            {
                SetValue(CHGUSERProperty, value);
                OnCHGUSERChg();
            }
        }
        private static void OnCHGUSERChanged(DependencyObject sender, DependencyPropertyChangedEventArgs e)
        {
            var src = sender as UIICC_WFEVENTDEF;
            if (src != null)
            {
                src.CHGUSER = (string)e.NewValue;
            }
        }
        public virtual void OnCHGUSERChg()
        { 
        if(!IsEdit)
        return;
        if(dwMaster==null)
        return;
        TMV.CHGUSER=CHGUSER;
        }
         #endregion
       #region ==CHGTIME===========
        public static readonly DependencyProperty CHGTIMEProperty = DependencyProperty.Register("CHGTIME",
            typeof(string), typeof(UIICC_WFEVENTDEF),
            new FrameworkPropertyMetadata("", FrameworkPropertyMetadataOptions.BindsTwoWayByDefault, OnCHGTIMEChanged));
        public string CHGTIME
        {
            get
            {
                return (string)GetValue(CHGTIMEProperty);
            }
            set
            {
                SetValue(CHGTIMEProperty, value);
                OnCHGTIMEChg();
            }
        }
        private static void OnCHGTIMEChanged(DependencyObject sender, DependencyPropertyChangedEventArgs e)
        {
            var src = sender as UIICC_WFEVENTDEF;
            if (src != null)
            {
                src.CHGTIME = (string)e.NewValue;
            }
        }
        public virtual void OnCHGTIMEChg()
        { 
        if(!IsEdit)
        return;
        if(dwMaster==null)
        return;
        TMV.CHGTIME=CHGTIME;
        }
         #endregion
       #region ==WFEHANDLER===========
        public static readonly DependencyProperty WFEHANDLERProperty = DependencyProperty.Register("WFEHANDLER",
            typeof(string), typeof(UIICC_WFEVENTDEF),
            new FrameworkPropertyMetadata("", FrameworkPropertyMetadataOptions.BindsTwoWayByDefault, OnWFEHANDLERChanged));
        public string WFEHANDLER
        {
            get
            {
                return (string)GetValue(WFEHANDLERProperty);
            }
            set
            {
                SetValue(WFEHANDLERProperty, value);
                OnWFEHANDLERChg();
            }
        }
        private static void OnWFEHANDLERChanged(DependencyObject sender, DependencyPropertyChangedEventArgs e)
        {
            var src = sender as UIICC_WFEVENTDEF;
            if (src != null)
            {
                src.WFEHANDLER = (string)e.NewValue;
            }
        }
        public virtual void OnWFEHANDLERChg()
        { 
        if(!IsEdit)
        return;
        if(dwMaster==null)
        return;
        TMV.WFEHANDLER=WFEHANDLER;
        }
         #endregion
       #region ==NEXTEVENTS1===========
        public static readonly DependencyProperty NEXTEVENTS1Property = DependencyProperty.Register("NEXTEVENTS1",
            typeof(string), typeof(UIICC_WFEVENTDEF),
            new FrameworkPropertyMetadata("", FrameworkPropertyMetadataOptions.BindsTwoWayByDefault, OnNEXTEVENTS1Changed));
        public string NEXTEVENTS1
        {
            get
            {
                return (string)GetValue(NEXTEVENTS1Property);
            }
            set
            {
                SetValue(NEXTEVENTS1Property, value);
                OnNEXTEVENTS1Chg();
            }
        }
        private static void OnNEXTEVENTS1Changed(DependencyObject sender, DependencyPropertyChangedEventArgs e)
        {
            var src = sender as UIICC_WFEVENTDEF;
            if (src != null)
            {
                src.NEXTEVENTS1 = (string)e.NewValue;
            }
        }
        public virtual void OnNEXTEVENTS1Chg()
        { 
        if(!IsEdit)
        return;
        if(dwMaster==null)
        return;
        TMV.NEXTEVENTS1=NEXTEVENTS1;
        }
         #endregion
       #region ==NEXTEVENTS2===========
        public static readonly DependencyProperty NEXTEVENTS2Property = DependencyProperty.Register("NEXTEVENTS2",
            typeof(string), typeof(UIICC_WFEVENTDEF),
            new FrameworkPropertyMetadata("", FrameworkPropertyMetadataOptions.BindsTwoWayByDefault, OnNEXTEVENTS2Changed));
        public string NEXTEVENTS2
        {
            get
            {
                return (string)GetValue(NEXTEVENTS2Property);
            }
            set
            {
                SetValue(NEXTEVENTS2Property, value);
                OnNEXTEVENTS2Chg();
            }
        }
        private static void OnNEXTEVENTS2Changed(DependencyObject sender, DependencyPropertyChangedEventArgs e)
        {
            var src = sender as UIICC_WFEVENTDEF;
            if (src != null)
            {
                src.NEXTEVENTS2 = (string)e.NewValue;
            }
        }
        public virtual void OnNEXTEVENTS2Chg()
        { 
        if(!IsEdit)
        return;
        if(dwMaster==null)
        return;
        TMV.NEXTEVENTS2=NEXTEVENTS2;
        }
         #endregion
       #region ==NEXTEVENTS3===========
        public static readonly DependencyProperty NEXTEVENTS3Property = DependencyProperty.Register("NEXTEVENTS3",
            typeof(string), typeof(UIICC_WFEVENTDEF),
            new FrameworkPropertyMetadata("", FrameworkPropertyMetadataOptions.BindsTwoWayByDefault, OnNEXTEVENTS3Changed));
        public string NEXTEVENTS3
        {
            get
            {
                return (string)GetValue(NEXTEVENTS3Property);
            }
            set
            {
                SetValue(NEXTEVENTS3Property, value);
                OnNEXTEVENTS3Chg();
            }
        }
        private static void OnNEXTEVENTS3Changed(DependencyObject sender, DependencyPropertyChangedEventArgs e)
        {
            var src = sender as UIICC_WFEVENTDEF;
            if (src != null)
            {
                src.NEXTEVENTS3 = (string)e.NewValue;
            }
        }
        public virtual void OnNEXTEVENTS3Chg()
        { 
        if(!IsEdit)
        return;
        if(dwMaster==null)
        return;
        TMV.NEXTEVENTS3=NEXTEVENTS3;
        }
         #endregion
       #region ==DEFCONTROL1===========
        public static readonly DependencyProperty DEFCONTROL1Property = DependencyProperty.Register("DEFCONTROL1",
            typeof(string), typeof(UIICC_WFEVENTDEF),
            new FrameworkPropertyMetadata("", FrameworkPropertyMetadataOptions.BindsTwoWayByDefault, OnDEFCONTROL1Changed));
        public string DEFCONTROL1
        {
            get
            {
                return (string)GetValue(DEFCONTROL1Property);
            }
            set
            {
                SetValue(DEFCONTROL1Property, value);
                OnDEFCONTROL1Chg();
            }
        }
        private static void OnDEFCONTROL1Changed(DependencyObject sender, DependencyPropertyChangedEventArgs e)
        {
            var src = sender as UIICC_WFEVENTDEF;
            if (src != null)
            {
                src.DEFCONTROL1 = (string)e.NewValue;
            }
        }
        public virtual void OnDEFCONTROL1Chg()
        { 
        if(!IsEdit)
        return;
        if(dwMaster==null)
        return;
        TMV.DEFCONTROL1=DEFCONTROL1;
        }
         #endregion
       #region ==DEFCONTROL2===========
        public static readonly DependencyProperty DEFCONTROL2Property = DependencyProperty.Register("DEFCONTROL2",
            typeof(string), typeof(UIICC_WFEVENTDEF),
            new FrameworkPropertyMetadata("", FrameworkPropertyMetadataOptions.BindsTwoWayByDefault, OnDEFCONTROL2Changed));
        public string DEFCONTROL2
        {
            get
            {
                return (string)GetValue(DEFCONTROL2Property);
            }
            set
            {
                SetValue(DEFCONTROL2Property, value);
                OnDEFCONTROL2Chg();
            }
        }
        private static void OnDEFCONTROL2Changed(DependencyObject sender, DependencyPropertyChangedEventArgs e)
        {
            var src = sender as UIICC_WFEVENTDEF;
            if (src != null)
            {
                src.DEFCONTROL2 = (string)e.NewValue;
            }
        }
        public virtual void OnDEFCONTROL2Chg()
        { 
        if(!IsEdit)
        return;
        if(dwMaster==null)
        return;
        TMV.DEFCONTROL2=DEFCONTROL2;
        }
         #endregion
       #region ==DEFCONTROL3===========
        public static readonly DependencyProperty DEFCONTROL3Property = DependencyProperty.Register("DEFCONTROL3",
            typeof(string), typeof(UIICC_WFEVENTDEF),
            new FrameworkPropertyMetadata("", FrameworkPropertyMetadataOptions.BindsTwoWayByDefault, OnDEFCONTROL3Changed));
        public string DEFCONTROL3
        {
            get
            {
                return (string)GetValue(DEFCONTROL3Property);
            }
            set
            {
                SetValue(DEFCONTROL3Property, value);
                OnDEFCONTROL3Chg();
            }
        }
        private static void OnDEFCONTROL3Changed(DependencyObject sender, DependencyPropertyChangedEventArgs e)
        {
            var src = sender as UIICC_WFEVENTDEF;
            if (src != null)
            {
                src.DEFCONTROL3 = (string)e.NewValue;
            }
        }
        public virtual void OnDEFCONTROL3Chg()
        { 
        if(!IsEdit)
        return;
        if(dwMaster==null)
        return;
        TMV.DEFCONTROL3=DEFCONTROL3;
        }
         #endregion
       */
       
       #endregion
    } 
}
